package com.spark.tags;


import com.spark.core.SparkContext;
import com.spark.core.XMap;

public class TriggerField extends TextField {
	public static final String PROPERTITY_INPUTWIDTH = "inputWidth";
	public static final String PROPERTITY_TRIGER_HEIGHT = "trigerHeight";
	
	public void init(XMap view, SparkContext context) throws Exception {
		super.init(view, context);
		Integer width = (Integer)context.get(PROPERTITY_WIDTH);
		context.put(PROPERTITY_INPUTWIDTH, new Integer(width.intValue()-27));
		
		Integer height = (Integer)context.get(PROPERTITY_HEIGHT);
		context.put(PROPERTITY_TRIGER_HEIGHT, height);
	}
}
